package com.cos.shop.dao;

import com.cos.shop.entity.User;

import java.sql.SQLException;

public interface UserDao {

    int addUser(User user) throws SQLException;

    User getUserByUname(String uname) throws SQLException;

    User getUserByEmailAndCode(String email, String code) throws SQLException;

    int changeUserStatus(int uid, int isActive) throws SQLException;

}
